package tree;

import model.TreeNode;

import java.util.List;

/**
 * create by yongli on 2021-07-12 09:41
 */

public class TreeBase {

    public static void main(String[] args) {


    }


    public static TreeNode build(TreeNode root,List<Integer> data) {
        if(data.size()>0){
            root.val = data.remove(0);
        }
        TreeNode left  =null;
        if(data.size()>0) {
             left = new TreeNode();
        }
        return left;
    }
}
